package cn.sunxyz.module.honey.repository;

import cn.sunxyz.module.honey.domain.FolderDO;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Set;

/**
 * Created by sunxyz on 2017/3/2.
 */
public interface FolderRepository extends JpaRepository<FolderDO, Long> {

    Set<FolderDO> findByParentId(Long parentId);

    FolderDO findBySelfPathName(String path);
}
